package com.cx.core.magazine.model.bean.form;

import java.sql.Timestamp;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

/**
 * 文章的form实体类
 * 
 * 
 * @author lee
 * @version 1.0
 * @date 2012-02-25
 */
public class ArticleForm extends ActionForm {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 文章编号
	 */
	private int id;
	/**
	 * 撰稿人
	 */
	private String publisher;
	/**
	 * 撰稿时间
	 */
	private long publish_date;
	/**
	 * 撰稿时间前台传入
	 */
	private Timestamp publish_date_time;
	public Timestamp getPublish_date_time() {
		return publish_date_time;
	}

	public void setPublish_date_time(Timestamp publish_date_time) {
		this.publish_date_time = publish_date_time;
	}

	/**
	 * 操作员
	 * 
	 */
	private String user;
	/**
	 * 
	 * 操作时间
	 */
	private long timestamp;
	/**
	 * 期刊序列
	 */
	private int period_id;
	/**
	 * 年度
	 */
	private int year;
	/**
	 * 期刊号
	 */
	private int period;
	/**
	 * 当年期号
	 */
	private int year_period;
	/**
	 * 文章标题
	 */
	private String title;
	/**
	 * 文章类别 重要新闻/一般新闻
	 */
	private String type;
	/**
	 * 文章具体的内容
	 */
	private String content;
	/**
	 * 相关的图像资源
	 */
	private String image_id;
	/**
	 * 上传的文件
	 * 
	 * @return
	 */
	private FormFile upload;

	public FormFile getUpload() {
		return upload;
	}

	public void setUpload(FormFile upload) {
		this.upload = upload;
	}

	public String getImage_id() {
		return image_id;
	}

	public void setImage_id(String imageId) {
		image_id = imageId;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPeriod_id() {
		return period_id;
	}

	public void setPeriod_id(int periodId) {
		period_id = periodId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}

	public long getPublish_date() {
		return publish_date;
	}

	public void setPublish_date(long publishDate) {
		publish_date = publishDate;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getPeriod() {
		return period;
	}

	public void setPeriod(int period) {
		this.period = period;
	}

	public int getYear_period() {
		return year_period;
	}

	public void setYear_period(int year_period) {
		this.year_period = year_period;
	}

}
